import request from '@/utils/request'

// 查询车辆路线列表
export function listVehicleroute(query) {
  return request({
    url: '/driver/vehicleroute/list',
    method: 'get',
    params: query
  })
}

// 查询车辆路线详细
export function getVehicleroute(id) {
  return request({
    url: '/driver/vehicleroute/' + id,
    method: 'get'
  })
}

// 新增车辆路线
export function addVehicleroute(data) {
  return request({
    url: '/driver/vehicleroute',
    method: 'post',
    data: data
  })
}

// 修改车辆路线
export function updateVehicleroute(data) {
  return request({
    url: '/driver/vehicleroute',
    method: 'put',
    data: data
  })
}

// 删除车辆路线
export function delVehicleroute(id) {
  return request({
    url: '/driver/vehicleroute/' + id,
    method: 'delete'
  })
}
